<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="Public/Admin/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<!--页面导航-->
		<div class="alert alert-success" role="alert">
			品牌管理&nbsp;>&nbsp;编辑品牌
		</div>
		<p>
			<a href="{{U('Brand/index')}}" class="btn btn-info btn-sm">返回</a>
		</p>
		
		<form action="" method="post" enctype="multipart/form-data">
		<div class="form-group">
			<label for="brand_name">品牌名称</label>
			<input id="brand_name" class="form-control" type="text" name="brand_name" value="{{$oldData['brand_name']}}">
		</div>
		<script type="text/javascript" src="Public/Admin/jquery-1.9.1.min.js" charset="UTF-8"></script>
		<script type="text/javascript">
			$(function(){//alert(1);
				$(".close_img").click(function(){
					var str = '<label for="brand_logo">logo</label><input id="brand_logo" type="file" name="brand_logo">';
					$("#upload_box").html(str);
				})
			})
		</script>
		<div class="form-group" id="upload_box">
			{{if value="$oldData['brand_logo']"}}
				<img src="{{$oldData['brand_logo']}}" alt="" />
				<a href="javascript:;" class="close_img">×</a>
				<input type="hidden" name="brand_logo" value="{{$oldData['brand_logo']}}" />
			{{else}}
				<label for="brand_logo">logo</label><input id="brand_logo" type="file" name="brand_logo">
			{{endif}}
		</div>
		<div class="form-group">
			<label for="sort_order">排序</label>
			<input id="sort_order" class="form-control" type="text" placeholder="请输入品牌排序" name="sort_order" value="{{$oldData['sort_order']}}">
		</div>
		<div class="form-group">
			<label for="is_hot">是否热门</label>
			<input id="is_hot" type="checkbox" name="is_hot" {{if value="$oldData['is_hot']==1"}}checked="checked"{{endif}}>
		</div>
		<button class="btn btn-primary btn-block" type="submit"> 确定 </button>
		</form>
	</body>
</html>
